package com.zackratos.common

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.zackratos.common.databinding.FragmentComponentBinding

/**
 * @Author   : zhangwenchao
 * @Date     : 2020/12/24  9:17 PM
 * @Describe :
 */
open class BaseComponentFragment(private val component: String) : BaseFragment(R.layout.fragment_component) {

    protected lateinit var binding: FragmentComponentBinding

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        binding = FragmentComponentBinding.inflate(inflater, container, false)
        return binding.root
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        binding.tvContentTop.text = "component $component top"
        binding.tvContentBottom.text = "component $component bottom"
    }


}